<template>
	<view class="shop">
		<navigator url="../../pages/shopDetails/shopDetails">
			<image :src="shop.src"></image>
			<view class="title">
				{{shop.title}}
			</view>
			<view class="price">
				￥{{shop.price}}
			</view>
		</navigator>
	</view>
</template>

<script>
	export default {
		name: "shop",
		props: ['shop'],
		data() {
			return {};
		}
	}
</script>

<style>
	.shop {
		margin-top: 20rpx;
		width: 342rpx;
		background-color: white;
		border-radius: 10%;
	}

	.shop image {
		width: 344rpx;
		height: 288rpx;
	}

	.title {
		padding-left: 25rpx;
		word-break: break-all;
		text-overflow: ellipsis;
		-webkit-line-clamp: 2;
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
	}
	.price{
		padding-left: 20rpx;
	}
</style>